package o;

import android.os.Bundle;
import com.huawei.hmf.annotation.FragmentDefine;

public class fje {
    private Bundle ˊ;
    private fid ˎ;

    public fje(fid o_fid) {
        this(new Bundle());
        this.ˎ = o_fid;
    }

    public fje(Bundle bundle) {
        this.ˊ = bundle;
    }

    public void ˋ(Object obj) {
        fib o_fib = new fib();
        if (obj != null) {
            o_fib.ˋ(obj, this.ˊ);
        }
        this.ˊ.putBundle("com.huawei.hmf.services.inject.InjectBindingRegistry", o_fib.ˋ(this.ˎ, new Bundle()));
    }

    public <T> T ॱ(FragmentDefine fragmentDefine) {
        Object o_fjl;
        if (fragmentDefine.protocol().isInterface()) {
            o_fjl = new fjl(fragmentDefine.protocol());
        } else {
            try {
                o_fjl = fragmentDefine.protocol().newInstance();
            } catch (Exception e) {
                return null;
            }
        }
        new fib().ˏ(this.ˊ, o_fjl);
        T ˎ = ˎ(o_fjl);
        if (ˎ instanceof fjl) {
            return ((fjl) ˎ).get();
        }
        return ˎ;
    }

    private Object ˎ(Object obj) {
        this.ˎ = (fid) new fib().ˏ(this.ˊ.getBundle("com.huawei.hmf.services.inject.InjectBindingRegistry"), new fid());
        return new fih(this.ˎ).ˊ(obj);
    }

    public Bundle ˎ() {
        return this.ˊ;
    }
}
